package cn.ainit.yz.comparsion.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
 
@Entity
@Table(name = "YZ_COMPARISON")
public class YzComparison implements java.io.Serializable {

	private String codeid;
	private String comparisonId;
	private String name;
	private Double sortnum;
	private String parentCodeid;
	private String belongCodeid;
	private String rspCodeid;


	/** default constructor */
	public YzComparison() {
	}

	/** minimal constructor */
	public YzComparison(String codeid) {
		this.codeid = codeid;
	}
 
	@Id
	@Column(name = "CODEID", unique = true, nullable = false, length = 15)
	public String getCodeid() {
		return this.codeid;
	}

	public void setCodeid(String codeid) {
		this.codeid = codeid;
	}

	@Column(name="COMPARISON_ID")
	public String getComparisonId() {
		return comparisonId;
	}
	public void setComparisonId(String comparisonId) {
		this.comparisonId = comparisonId;
	}
	@Column(name = "NAME", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "SORTNUM", precision = 18, scale = 4)
	public Double getSortnum() {
		return this.sortnum;
	}

	public void setSortnum(Double sortnum) {
		this.sortnum = sortnum;
	}

	@Column(name = "PARENT_CODEID", length = 15)
	public String getParentCodeid() {
		return this.parentCodeid;
	}

	public void setParentCodeid(String parentCodeid) {
		this.parentCodeid = parentCodeid;
	}

	@Column(name = "BELONG_CODEID", length = 15)
	public String getBelongCodeid() {
		return this.belongCodeid;
	}

	public void setBelongCodeid(String belongCodeid) {
		this.belongCodeid = belongCodeid;
	}

	@Column(name = "RSP_CODEID", length = 15)
	public String getRspCodeid() {
		return this.rspCodeid;
	}

	public void setRspCodeid(String rspCodeid) {
		this.rspCodeid = rspCodeid;
	}

}